package com.cdx.springcloud.service;

import org.springframework.stereotype.Service;

/**
 *
 * 客户端在调用服务时，如果服务宕机了，那么会走这里的fallback
 * @author chedx
 * @data 2020/12/6 9:42 PM
 */
@Service
public class PaymentFallbackService implements PaymentHystrixService {
    @Override
    public String paymentInfo_OK(Integer id)
    {
        return "-----PaymentFallbackService fall back-paymentInfo_OK ,o(╥﹏╥)o";
    }

    @Override
    public String paymentInfo_TimeOut(Integer id)
    {
        return "-----PaymentFallbackService fall back-paymentInfo_TimeOut ,o(╥﹏╥)o";
    }
}
